class HeapOnly
{
public:
	static HeapOnly* CreateObject()
	{
		return new HeapOnly;
	}
private:
	HeapOnly(){};
	HeapOnly(const HeapOnly&) = delete;
};
 
 
int main()
{
	HeapOnly*p = HeapOnly::CreateObject();
	return 0;
}